package com.regent.central.bill.service.storehouse;

import com.regent.central.bill.core.storehouse.StockChangeSku;
import com.regent.central.infrastructure.service.DomainService;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

public interface StockChangeSkuService extends DomainService<StockChangeSku> {

    /**
     * 获取该时间后有sku变动的盘点id
     *
     * @param skuId
     * @param storehouseId
     * @param date
     * @return
     * @throws Exception
     */
    Map<String, Object> selectInventoryId(String skuId, String storehouseId, Date date);

    /**
     * 更新调整记录
     * @param skuId
     * @param inventoryId
     * @param stock
     * @param userId
     */
    void updateChangeNum(String skuId, String inventoryId, BigDecimal stock, String userId) ;
}
